package com.kurancy.web.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
public class LogoutController {
	
	@RequestMapping("/logout")
	public void logout(	HttpServletResponse response) throws IOException {
		
		SecurityContextHolder.clearContext();
		response.sendRedirect("/");
	}

}
